package com.hkts.beltweigher.salve.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hml
 * @since 2024-11-19
 */
public class TemperatureRegulationItem extends Model<TemperatureRegulationItem> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 表主键
     */
    private Integer tableId;
    /**
     * 数据源字段
     */
    private String dataSourceField;
    /**
     * 字段描述
     */
    private String filedDescribe;
    /**
     * 表字段
     */
    private String tableField;
    /**
     * 字段类型
     */
    private Integer fieldType;
    /**
     * 字段编码
     */
    private String fieldCode;
    /**
     * 字段顺序
     */
    private Integer fieldOrder;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    private Integer opcId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTableId() {
        return tableId;
    }

    public void setTableId(Integer tableId) {
        this.tableId = tableId;
    }

    public String getDataSourceField() {
        return dataSourceField;
    }

    public void setDataSourceField(String dataSourceField) {
        this.dataSourceField = dataSourceField;
    }

    public String getFiledDescribe() {
        return filedDescribe;
    }

    public void setFiledDescribe(String filedDescribe) {
        this.filedDescribe = filedDescribe;
    }

    public String getTableField() {
        return tableField;
    }

    public void setTableField(String tableField) {
        this.tableField = tableField;
    }

    public Integer getFieldType() {
        return fieldType;
    }

    public void setFieldType(Integer fieldType) {
        this.fieldType = fieldType;
    }

    public String getFieldCode() {
        return fieldCode;
    }

    public void setFieldCode(String fieldCode) {
        this.fieldCode = fieldCode;
    }

    public Integer getFieldOrder() {
        return fieldOrder;
    }

    public void setFieldOrder(Integer fieldOrder) {
        this.fieldOrder = fieldOrder;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getOpcId() {
        return opcId;
    }

    public void setOpcId(Integer opcId) {
        this.opcId = opcId;
    }

    public static final String ID = "id";

    public static final String TABLE_ID = "table_id";

    public static final String DATA_SOURCE_FIELD = "data_source_field";

    public static final String FILED_DESCRIBE = "filed_describe";

    public static final String TABLE_FIELD = "table_field";

    public static final String FIELD_TYPE = "field_type";

    public static final String FIELD_CODE = "field_code";

    public static final String FIELD_ORDER = "field_order";

    public static final String CREATE_TIME = "create_time";

    public static final String OPC_ID = "opc_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TemperatureRegulationItem{" +
                ", id=" + id +
                ", tableId=" + tableId +
                ", dataSourceField=" + dataSourceField +
                ", filedDescribe=" + filedDescribe +
                ", tableField=" + tableField +
                ", fieldType=" + fieldType +
                ", fieldCode=" + fieldCode +
                ", fieldOrder=" + fieldOrder +
                ", createTime=" + createTime +
                ", opcId=" + opcId +
                "}";
    }
}
